package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.backend.domain.entity.ArticleCategory;
import com.sikaryofficial.system.api.model.infomation.ArticleCategoryDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : qinjinyuan
 * @desc : 文章banner映射接口
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface ArticleCategoryMapping {
    ArticleCategoryMapping INSTANCE = Mappers.getMapper(ArticleCategoryMapping.class);

    /**
     * 实体映射resp
     *
     * @param activityReq
     * @return
     */
    ArticleCategoryDTO coverToDTO(ArticleCategory activityReq);

    /**
     * 实体映射resp
     *
     * @param activityList
     * @return
     */
    List<ArticleCategoryDTO> coverToDTOList(List<ArticleCategory> activityList);
}
